package com.igame.mapper;
import com.igame.entity.PrivateMessages;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface PrivateMessagesMapper {

    @Insert("insert into private_messages(id, sender_id, receiver_id, message, timestamp, is_new) " +
            "VALUES(null,#{senderId},#{receiverId},#{message},#{timestamp},#{isNew})")
    int insertPMessage(PrivateMessages privateMessages);

}
